body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #8FBC8F; /* Dark Sea Green, for a swampy feel */
    color: #333;
}

header {
    background-color: #6B8E23; /* Olive Drab, darker swampy color */
    color: white;
    text-align: center;
    padding: 1em 0;
    margin-bottom: 1em;
}

#posts-container {
    width: 80%;
    margin: 0 auto;
}

.post {
    background-color: #F0E68C; /* Khaki, a lighter swampy color */
    border: 1px solid #BDB76B; /* Dark Khaki, for contrast */
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 5px;
}

.post-author {
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 5px;
    position: relative; /* Required for absolute positioning of close button */
}

/* The Close Button */
.close-button {
    position: absolute;
    top: 0;
    right: 0;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    padding: 0 10px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* New Post Button */
#new-post-button {
    background-color: #556B2F; /* Dark Olive Green */
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#new-post-button:hover {
    background-color: #3e4e28;
}

/* Input and Textarea Styles */
input[type="text"],
textarea {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Make sure padding doesn't affect width */
}

/* Submit Post Button */
#submit-post {
    background-color: #556B2F; /* Dark Olive Green */
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#submit-post:hover {
    background-color: #3e4e28;
}

